package com.abu.auth.fallback;

import com.abu.auth.client.UserClient;
import com.abu.common.Resp;
import com.abu.common.exception.CRException;
import com.abu.crms.pojo.User;
import org.springframework.context.annotation.ComponentScan;
import org.springframework.stereotype.Component;

import javax.validation.Valid;

@Component
@ComponentScan("com.abu.common")
public class UserFallback implements UserClient {

    @Override
    public Resp queryUserInfoByCardNumAndPassword(String cardNum, String password) {
        return Resp.error().code(503).msg("请求超时，服务暂时不可用");
    }

}
